﻿<%@ Page Language="C#" MasterPageFile="~/Hospitals/Master/HospitalsMaster.Master"
    AutoEventWireup="true" CodeBehind="InvalidPurchaseGoodsList.aspx.cs" Inherits="HZ.DrugTrade.Web.Hospitals.Procurement.InvalidPurchaseGoodsList"
    Title="无标题页" %>

<%@ Register Src="../../Controls/ucIsBasicRemedy.ascx" TagName="ucIsBasicRemedy" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="tabnav">
        <ul>
            <li><a href="PurchaseGoodsList.aspx">有效采购目录</a></li>
            <li class="active"><a href="InvalidPurchaseGoodsList.aspx">无效采购目录</a></li>
        </ul>
    </div>
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td>
                    <table class="querylist">
                        <tr>
                            <td align="right">&nbsp;产品编号：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtGoodsid" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">&nbsp;产品名称：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtGoodsName" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">规格型号：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtOutLook" runat="server"></asp:TextBox>
                            </td>


                        </tr>
                        <tr>
                            <td align="right">拼音码：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtpinyincode" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                <asp:Label Text="项目：" ID="lblProjectid" runat="server" />
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="ddlProjectid" runat="server">
                                    <asp:ListItem Value="0002">2014年内蒙古自治区网上高值医用耗材阳光采购项目</asp:ListItem>
                                    <asp:ListItem Value="0001">2012年内蒙古自治区网上医用耗材采购项目</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <asp:Literal runat="server" ID="ltlAdvance" Text="&lt;tbody id='advance' style='display:none'&gt;"></asp:Literal>
                        <tr>
                            <%-- <td align="right">
                                拼音码：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtPinyinCode" runat="server"></asp:TextBox>
                            </td>--%>
                            <td align="right">材质：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtMaterial" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">最小计量单位：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtUnit" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">&nbsp;生产企业：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtProduceCompany_SC" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">&nbsp;投标企业：
                            </td>
                            <td align="left">
                                <asp:TextBox runat="server" ID="txtCompany_TB"></asp:TextBox>
                            </td>
                            <td align="right">&nbsp;配送企业：
                            </td>
                            <td align="left">
                                <asp:TextBox runat="server" ID="txtCompany_PS"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </td>
                <td width="100px">
                    <hz:HzButton ID="btnQuery" runat="server" Text="查询" OnClick="btnQuery_Click" CssClass="searchbtn"
                        ToolTip="点击查询符合条件的数据" />
                    <hz:HzLinkButton ID="lbnSwitch" runat="server" CommandArgument="simple" OnClick="lbnSwitch_Click"
                        Text="高级查询"></hz:HzLinkButton>
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="gvwProduceCatalog" CssClass="mainlist" runat="server" AutoGenerateColumns="False"
        EmptyDataText="暂无撤废的采购目录！" OnRowDataBound="gvwProduceCatalog_RowDataBound">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex-1) %>
                </ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="产品编号">
                <ItemTemplate>
                    <%# HZ.DrugTrade.Web.Function.GetGoodsUrl(Eval("Goodsid")) %>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="ProcureCatalogID" HeaderText="产品编号" Visible="false" />
            <asp:BoundField DataField="sortname" HeaderText="目录名称" ReadOnly="true" />
            <asp:BoundField DataField="GoodsName" HeaderText="产品名称" />
            <asp:BoundField DataField="Outlookc" HeaderText="规格型号" />
            <asp:BoundField DataField="Material" HeaderText="材质" NullDisplayText="无" />
            <asp:BoundField DataField="Count" HeaderText="最小计量数量" ReadOnly="true">
                <%--<HeaderStyle Width="30px" />--%>
            </asp:BoundField>
            <asp:BoundField DataField="Unit" HeaderText="最小计量单位">
                <%--<HeaderStyle Width="30px" />--%>
            </asp:BoundField>
            <asp:BoundField DataField="CompanyName_SC_tb" HeaderText="生产企业(代理)" />
            <%--<asp:BoundField DataField="PackUnit" HeaderText="最小零售包装单位"/>--%>
            <asp:BoundField DataField="QualityLevel" HeaderText="产品类别" />
            <%--<asp:BoundField DataField="SortName" HeaderText="产品分类" Visible="false">
                <HeaderStyle Width="55px" />
            </asp:BoundField>--%>
            <%--            <asp:BoundField DataField="ProcurePrice" HeaderText="采购限价" DataFormatString="{0:N4}">
                <HeaderStyle Width="55px" />
            </asp:BoundField>--%>
            <asp:TemplateField HeaderText="采购限价">
                <ItemTemplate>
                    <asp:Label ID="lblProcurePrice" runat="server" Text='<%#HZ.DrugTrade.Web.Function.FormPrice(Eval("ProjectID"), Eval("ProcurePrice")) %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="配送企业">
                <ItemTemplate>
                    <a href="javascript:void(null);" title="查看配送企业详细信息" onclick="window.open('../../CommonPage/CompanyInfo.aspx?companyid=<%# Eval("CompanyID_PS") %>','selectCompany','width=550,height=350,resizable=0,scrollbars=0, status=0, toolbar=0, menubar=0')">
                        <%# Eval("CompanyName_PS")%></a>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="CompanyName_TB" HeaderText="投标企业" Visible="false" />
            <%-- <asp:BoundField DataField="ProjectName" HeaderText="项目" Visible="false" />
            <asp:BoundField Visible="false" DataField="AddTime" HeaderText="添加时间" DataFormatString="{0:yyyy-MM-dd}" />
           <asp:TemplateField HeaderText="产品属性">
                <ItemTemplate>
                    <%# HZ.DrugTrade.Web.Function.FormatDrugSource( Eval("SortSource")) %>
                </ItemTemplate>
                <HeaderStyle Width="60px" />
            </asp:TemplateField>
             <asp:TemplateField HeaderText="是否基药">
                <ItemTemplate>
                    <%# HZ.DrugTrade.Web.Function.FormatDrugBasicRemedy(Eval("IsBasicRemedy"))%>
                </ItemTemplate>
                <HeaderStyle Width="60px" />
            </asp:TemplateField>--%>
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <hz:HzLinkButton ID="btnSelect" runat="server" OnClientClick='<%# GetURLScript("PurchaseCompanyUpdate.aspx?procureCatalogId="+Eval("ProcureCatalogID")+"&CompanyID_PS="+Eval("CompanyID_PS"))%>'
                        CausesValidation="false" Text='<img src="../../lib/images/setting.gif" align="middle" alt="" >配送企业'
                        ToolTip="点击进入修改配送企业" OperateType="编辑" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField>
                <HeaderTemplate>
                    <input id="addTable_chkAll" name="chkAll" type="checkbox" onclick="SelectAllCheckboxes(this, 'ctl00_ContentPlaceHolder1_gvwProduceCatalog', 'addTable_chkAll'); " />
                </HeaderTemplate>
                <ItemTemplate>
                    <input type="checkbox" name="checkbox1" id="checkbox1" value='<%#Eval("ProcureCatalogID")%>'
                        onclick="chkChecked(this, 'ctl00_ContentPlaceHolder1_gvwProduceCatalog', 'addTable_chkAll');" />
                </ItemTemplate>
                <HeaderStyle Width="25px" />
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged">
        </webdiyer:AspNetPager>
    </div>
    <div class="listip">
        <ul>
            <li>提示：<span> </span></li>
        </ul>
    </div>
    <div class="listctrl">
        <hz:HzButton ID="btnRecover" runat="server" Text="恢复目录" CssClass="btn" OperateType="编辑"
            OnClientClick="if(checkSelectedItems('ctl00_ContentPlaceHolder1_gvwProduceCatalog','请至少选择一个采购目录')){return confirm('确定要恢复所选的采购目录？');}return false;"
            OnClick="btnRecover_Click" ToolTip="将所选产品恢复" />
        <hz:HzButton ID="btnExport" runat="server" Text="导出Excel" CssClass="btn" OnClick="btnExport_Click" />
    </div>
</asp:Content>
